home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 4 / developer source - volume 4.iso / sdevl / oct95 / coadf105.gif < prev    next >
Graphics Interchange Format  |  1996-06-19  |  59KB  |  676x340  |  4-bit (16 colors)
Labels: text | screenshot | number | font
OCR: Figure 5. "Sale Calculates Its Total" Scenario View (Round II) Sale SaleLineltem Item Scenario: Sale Calculates its Total calcTotal calcSubtotal howMuchForQty Scenario Constraint: calcSubtotal getPriceForDate 0.1 seconds, 9 out of 10 times, calcTax 0.5 seconds max. calcTotal sale.calcTotal ( ; total) sale.calcSubtotal ( ; subtotal) --- -- > caicsubtotal sale.Lineltem.calcSubtotal ( ; subtotal): howMuchForQty item.howMuchForQty (qty, date ; amt) getPriceForDate :item. getPriceForDate (date ; price) [calcTotal} calc Tax sale.calcTax ( ; totalTax)